package com.myapi.client;

import java.io.Serializable;

import javax.jdo.annotations.PrimaryKey;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.NotPersistent;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.persistence.Embedded;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class PlayerInfo implements Serializable{
	
	 @PrimaryKey      
	   @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
	     @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
		     private String pId; 
	
	  @Persistent
	private String name;
	  @Persistent
	private String id;  //id must be unique for each Player
	  @Persistent
	private double chips;
	  @Persistent
	private PlayerHandInfo playerHand;
	

	public PlayerInfo(){
		playerHand=new PlayerHandInfo();

	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	public double getChips() {
		return chips;
	}


	public void setChips(double chips) {
		this.chips = chips;
	}


	public PlayerHandInfo getPlayerHand() {
		return playerHand;
	}


	public void setPlayerHand(PlayerHandInfo playerHand) {
		this.playerHand = playerHand;
	}


	

}
